//
//  ScollView2Bootcamp.swift
//  swiftUiTest
//
//  Created by Mac on 2023/6/27.
//

import SwiftUI

struct ScollView2Bootcamp_14: View {
    var body: some View {
        ScrollView{
            VStack{
                ForEach(0..<10){ index in
                    ScrollView(.horizontal,showsIndicators: false) {
                        HStack {
                            ForEach(0..<20){ index in
                                RoundedRectangle(cornerRadius:25)
                                    .fill(Color.white)
                                    .frame(width: 200,height: 200)
                                    .shadow(radius: 10)
                                    .padding()
                              
                                
                            }
                        }
                    }
                    
                }
            }
        }
    }
}

struct ScollView2Bootcamp_Previews: PreviewProvider {
    static var previews: some View {
        ScollView2Bootcamp_14()
    }
}
